import request from '@/config/axios'

/**
 * 上传分片
 * @param data
 */
export const list = async () => {
  return request.get({ url: '/watermark/list' })
}

export const save = async (formData: FormData) => {
  return request.upload({ url: '/watermark/save', data: formData })
}

export const one = async (id) => {
  return request.get({ url: '/watermark/one?id=' + id })
}

export const remove = async (id) => {
  return request.post({ url: '/watermark/remove/' + id })
}
